#include "rclcpp/rclcpp.hpp"

class test : public rclcpp::Node
{
private:
    /* data */
public:
    test(const std::string node_name):rclcpp::Node(node_name){

    }
    ~test(){

    }
    void run(){
        RCLCPP_INFO(this->get_logger(), "first cpp node");
    }
};



int main(int argc, char **argv)
{
    rclcpp::init(argc, argv);
    auto node = std::make_shared<test>("cpp_node");
    node->run();
    rclcpp::spin(node);
    rclcpp::shutdown();
    return 0;
}